<template>
  <div class="one">
    <div class="title">周末去哪儿</div>
    <ul>
      <li class="item border-bottom" v-for="item of recommendList" :key="item.id">
        <div class="item-img-wrapper">
          <img class="item-img" :src="item.imgUrl" alt />
        </div>
        <div class="item-info">
          <p class="item-title">{{item.title}}</p>
          <p class="item-desc">{{item.desc}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "HomeWeekend",
  components: {},
  props: {},
  data() {
    return {
      recommendList: [
        {
          id: "001",
          imgUrl:
            "https://img1.qunarzz.com/vs_ceph_vs_tts/b7e8da69-6a41-4136-a9a6-985727e08d6d.jpg",
          title: "八达岭长城",
          desc: "不到长城非好汉"
        },
        {
          id: "002",
          imgUrl:
            "https://img1.qunarzz.com/vs_ceph_vs_tts/952b6c43-279f-48ef-8295-d439a522c893.jpg",
          title: "恭王府",
          desc: "一起去看看和珅家"
        },
        {
          id: "003",
          imgUrl:
            "https://img1.qunarzz.com/vs_ceph_vs_tts/0476a75c-26c4-4afc-b856-03faf52d0b6d.jpg",
          title: "什刹海",
          desc: "北京的温柔乡"
        }
      ]
    };
  },
  watch: {},
  computed: {},
  methods: {},
  created() {},
  mounted() {}
};
</script>
<style lang="stylus" scoped>
@import '~@/assets/styles/mixins.styl';

.one {
  margin-bottom: 1rem;

  .title {
    line-height: 0.8rem;
    background: #ccc;
    text-indent: 0.2rem;
  }

  .item-img-wrapper {
    overflow: hidden;
    padding-botton: 33.9%;

    .item-img {
      width: 100%;
      height: 3rem;
      padding: 0.1rem;
    }
  }

  .item-info {
    padding: 0.1rem;

    .item-title {
      line-height: 0.54rem;
      font-size: 0.32rem;
      ellipsis();
    }

    .item-desc {
      line-height: 0.4rem;
      color: #ccc;
      ellipsis();
    }
  }
}
</style>